home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group00a.txt
/
000038_icon-group-sender _Mon Feb 28 12:41:59 2000.msg
< prev
next >
Wrap
Internet Message Format
|
2001-01-03
|
1KB
Return-Path: <icon-group-sender>
Received: (from root@localhost)
by baskerville.CS.Arizona.EDU (8.9.1a/8.9.1) id MAA14946
for icon-group-addresses; Mon, 28 Feb 2000 12:41:09 -0700 (MST)
Message-Id: <200002281941.MAA14946@baskerville.CS.Arizona.EDU>
Date: Mon, 28 Feb 2000 08:46:18 -0700
From: Steve Wampler <swampler@noao.edu>
X-Accept-Language: en
To: jeffery@big-bill.CS.UNLV.EDU,
icon-group <icon-group@optima.CS.Arizona.EDU>
Subject: Re: closing a closed file
Errors-To: icon-group-errors@optima.CS.Arizona.EDU
Status: RO
jeffery@big-bill.CS.UNLV.EDU wrote:
>
> The Icon book doesn't say what happens when you close a closed file, but
> some real applications assume that it is a no-op. On my Redhat/Mandrake
> Linux system, the following program causes a memory violation in the
> reference to &clock.
>
> procedure main()
> f := open("foo.icn")
> close(f)
> close(f)
> &clock
> end
>
> So closing a closed file is a silent killer on some systems. The bug is tiny
> and the fix in Icon's runtime system is trivial, but at present you may wish
> to avoid closing closed files.
Interesting. I don't see this under Solis (Icon 9.3) or on one Redhat 6.1
(Icon 9.3.2) system, but I do see this on another RH6.1 system (Icon 9.3.1).
I would have expected it to be a no-op, also.
--
Steve Wampler- SOLIS Project, National Solar Observatory
swampler@noao.edu